﻿using System;

namespace BSPortal.Usercontrol
{
    public partial class Publisher : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            short line = Common.GetLine();
            header.InnerText = (line == Common.GetLineConfig(PageConst.BookLine)) ? "Nhà xuất bản" : "Nhà sản xuất";

            var listPublisher = Common.GetCurrentLinePublisher().FindAll(row => (bool)row.IsPublished == true);
            publisherRepeater.DataSource = listPublisher;
            publisherRepeater.DataBind();
        }
    }
}